package com.wy.powerbuilder.service.impl.Costs;

import com.wy.powerbuilder.entity.Costs.parking;
import com.wy.powerbuilder.entity.hxl.carseat;
import com.wy.powerbuilder.mapper.Costs.ParkingMapper;
import com.wy.powerbuilder.service.Costs.ParkingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class PackingServiceImpl implements ParkingService {
    @Autowired
    private ParkingMapper parkingMapper;

    @Override
    public List<parking> selectAll() {
        return parkingMapper.selectAll();
    }

    @Override
    public List<carseat> selCarSeat() {
        return parkingMapper.selCarSeat();
    }


    @Override
    public int addParking(parking parking) {
        return parkingMapper.addParking(parking);
    }

    @Override
    public List<parking> selidall(Integer id) {
        return parkingMapper.selidall(id);
    }

    @Override
    public int selcar(String housing) {
        return parkingMapper.selcar(housing);
    }

    @Override
    public carseat selcarid(Integer id) {
        return parkingMapper.selcarid(id);
    }
   /* @Override
        public PageInfo<parking> selByPage(Integer pageNum, Integer pageSize) {
            if(pageNum==null){
                pageNum=1;
            }
             PageHelper.startPage(pageNum,pageSize);
            List<parking> parkings=parkingMapper.selectAll();
            PageInfo<parking> pageInfo=new PageInfo<>(parkings);

            return pageInfo;
        }*/
}
